/*
 * Role_Menu。java
 *
 * Created Date: 2014年12月5日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.privilege.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * @author hellsing
 * @version  <br>
 * <p>类的描述</p>
 */
@Entity
@Table(name="role_menu")
public class Role_Menu {
	private int  id;
	private Role role;
	private Menu menu;
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	public int getId() {
	
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
	
		this.id = id;
	}
	
	/**
	 * @return the role
	 */
	@ManyToOne
	@JoinColumn(name="roleId")
	public Role getRole() {
	
		return role;
	}
	
	/**
	 * @param role the role to set
	 */
	public void setRole(Role role) {
	
		this.role = role;
	}
	
	/**
	 * @return the menu
	 */
	@ManyToOne
	@JoinColumn(name="menuId")
	public Menu getMenu() {
	
		return menu;
	}
	
	/**
	 * @param menu the menu to set
	 */
	public void setMenu(Menu menu) {
	
		this.menu = menu;
	}
	
}
